package com.wangijun.yuan.web;

import com.wangijun.yuan.core.model.YuanCoreConst;
import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableFileStorage
@SpringBootApplication
@ComponentScan({YuanCoreConst.packageName + ".*"})
@MapperScan({YuanCoreConst.packageName + ".**.mapper"})
@EnableScheduling
@EnableCaching
public class YuanWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(YuanWebApplication.class, args);
    }
}
